package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.item.dto.BrandDTO;
import com.leyou.item.dto.PageDTO;
import com.leyou.item.dto.QueryPageBean;
import com.leyou.item.entity.Brand;

import java.util.List;

/**
 * @author YYP
 * @date 2020/12/28
 */
public interface BrandService extends IService<Brand> {
    BrandDTO queryBrandById(Long id);

    List<BrandDTO> listBrandByIds(List<Long> ids);

    PageDTO<BrandDTO> queryBrandByPage(Integer page, Integer rows, String key);

    PageDTO<BrandDTO> queryBrandByPage(QueryPageBean queryPageBean);

    List<BrandDTO> listBrandByCategoryId(Long categoryId);

    void addBrand(BrandDTO brandDTO);

    void updateBrand(BrandDTO brandDTO);

    void deleteBrandById(Long id);
}
